package com.UnionPayCenter.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @program: UnionPayCenter
 * @description: 商铺配置表
 * @author: bite
 * @create: 2019-04-25
 **/
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "shop_info")
public class ShopInfoEntity extends BaseEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "编号")
    @Column(name = "info_id")
    private Integer infoId;

    @Column(name = "shop_id")
    @ApiModelProperty(value = "对应店铺id")
    private Integer shopId;

    @Column(name = "open_appid")
    @ApiModelProperty(value = "开发平台appId")
    private String openAppid;

    @Column(name = "app_name")
    @ApiModelProperty(value = "小程序名称")
    private String appName;

    @Column(name = "app_id")
    @ApiModelProperty(value = "小程序appId")
    private String appId;

    @Column(name = "app_secret")
    @ApiModelProperty(value = "小程序秘钥")
    private String appSecret;

    @Column(name = "app_logo")
    @ApiModelProperty(value = "小程序logo")
    private String appLogo;

    @Column(name = "app_gh_id")
    @ApiModelProperty(value = "小程序原始ID")
    private String appGhId;

    @Column(name = "wechat_name")
    @ApiModelProperty(value = "微信公众号名称")
    private String wechatName;

    @Column(name = "wechat_id")
    @ApiModelProperty(value = "微信公众号appId")
    private String wechatId;

    @Column(name = "wechat_secret")
    @ApiModelProperty(value = "微信公众号秘钥")
    private String wechatSecret;

    @Column(name = "wechat_logo")
    @ApiModelProperty(value = "微信公众号logo")
    private String wechatLogo;

    @Column(name = "wechat_gh_id")
    @ApiModelProperty(value = "微信公众号原始ID")
    private String wechatGhId;

    @Column(name = "wechat_biz")
    @ApiModelProperty(value = "公众号标识")
    private String wechatBiz;

    @Column(name = "wechat_encrypt_card_id")
    @ApiModelProperty(value = "公众号加密cardId")
    private String wechatEncryptCardId;

    @Column(name = "merchant_id")
    @ApiModelProperty(value = "商户appId")
    private String merchantId;

    @Column(name = "merchant_secret")
    @ApiModelProperty(value = "商户秘钥")
    private String merchantSecret;

    @Column(name = "merchant_code")
    @ApiModelProperty(value = "商户代码")
    private String merchantCode;

    @Column(name = "yl_merchant")
    @ApiModelProperty(value = "宇链商户号")
    private String ylMerchant;

    @Column(name = "biz_mach_id")
    @ApiModelProperty(value = "商户号")
    private String bizMachId;

    @Column(name = "yl_tid")
    @ApiModelProperty(value = "宇链tid")
    private String ylTid;

    @Column(name = "yl_payment_tag")
    @ApiModelProperty(value = "宇链支付绑定标志")
    private String ylPaymentTag;

    @Column(name = "yl_parent_merchant")
    @ApiModelProperty(value = "宇链父商户号")
    private String ylParentMerchant;

    @Column(name = "membercard_id")
    @ApiModelProperty(value = "会员卡券ID")
    private String membercardId;

    @Column(name = "pay_channel")
    @ApiModelProperty(value = "支付方式:1银联支付,2微信支付")
    private Integer payChannel;

    @Column(name = "mobile_grant")
    @ApiModelProperty(value = "是否手机授权（0-否 1-是）")
    private Integer mobileGrant;

    @Column(name = "card_template_id")
    @ApiModelProperty(value = "卡券推送小程序模版id")
    private String cardTemplateId;

    @Column(name = "pay_template_id")
    @ApiModelProperty(value = "支付推送小程序模版id")
    private String payTemplateId;

    @Column(name = "deposit_template_id")
    @ApiModelProperty(value = "充值推送小程序模版id")
    private String depositTemplateId;

    @Column(name = "message_template_id")
    @ApiModelProperty(value = "消息推送模板id")
    private String messageTemplateId;

    @Column(name = "coupons_template_id")
    @ApiModelProperty(value = "优惠券领取推送模板id")
    private String couponsTemplateId;
}
